public class stringInstance{
    public static void main(String[] args) {
        String str = "string";
        str.toUpperCase();
        str.toString().replace("", "%");
        System.out.println(str);
        System.out.println(str.toString().replace("", "%"));
        System.out.println(str.toUpperCase());
    }
}